{extend name="Public/public"}
{block name="title"}添加子栏目{/block}
{block name="main"}
  <div class="col-sm-5"> 
   <div class="widget-box"> 
    <div class="widget-header"> 
     <h4>添加子栏目</h4> 
    </div> 
    <div class="widget-body"> 
     <div class="widget-main no-padding"> 
      <form action="/nav/insert" method="post"> 
       <!-- <legend>Form</legend> --> 
       <fieldset> 
        <label>子栏目名&nbsp;&nbsp;&nbsp;&nbsp;</label> 
        <input type="text" name="name" /> <br>
       </fieldset> 
        <fieldset> 
        <label>所属导航栏&nbsp;&nbsp;</label> 
        {foreach name="list" item="row"}
        <input type="text" name="name" value="{$row.name}"disabled="disabled"/> <br>
         <input type="hidden" name="pid" value="{$row.id}">
        <input type="hidden" name="path"value="{$row.path}">
         {/foreach}
       </fieldset>
       <fieldset> 
        <label>是否主页显示</label> 
        <select name="static" id="">
          <option value="1">是</option>
          <option value="2">不是</option>
        </select>
       </fieldset> 
        <fieldset> 
        <label>单网页网址&nbsp;&nbsp;</label> 
          <input type="text"name="url"placeholder='http://www.baidu.com'>
          <span style="color:red"><不是单网页请忽略></span>
       </fieldset> 
        
       
        <div class="form-actions center"> 
        <input type="submit" class="btn btn-sm btn-success" value="添加">
       </div> 
      </form> 
     </div> 
    </div> 
   </div> 
  </div>
{/block}